package com.qianxx.component.activity.recycleview.pull_recyclerview;

import android.content.Context;
import android.view.View;

import com.qianxx.component.R;
import com.qianxx.viewlibrary.recyclerview.pull.adapter.BaseAdapter;
import com.qianxx.viewlibrary.recyclerview.pull.adapter.BaseViewHolder;

import java.util.ArrayList;

public class PullRecyclerViewAdapter extends BaseAdapter<String> {

    public PullRecyclerViewAdapter(Context context) {
        super(context, new ArrayList<String>(), R.layout.item_pull_recycler_view);
    }

    @Override
    public void onBind(BaseViewHolder holder, int viewType, int position, String item) {
        holder.getView(R.id.tv_title).setVisibility(position == 0 ? View.VISIBLE : View.GONE);
    }
}
